package com.token.iot.bratterycharging.gateway;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/**
 * 转换器，主要是解决一些Sender的操作码和响应操作码不一致的情况
 * @author chenzhixuan
 *
 */
public class OperExchanger {
	
	
	private static Map<String,String> operMap =Collections.synchronizedMap(new HashMap());
	
	
	
	static public void register(String sendCode,String operCode) {
		operMap.put(operCode, sendCode);
	}
	
	
	
	static public String getSendCode(String operCode) {
		return operMap.get(operCode);
	}
	
}
